package homework10;

import java.util.Arrays;

public class Code02 {

	public static void main(String[] args) {
		int[] target = {10,20,11,35,6,89};
		System.out.println(Arrays.toString(target));
		int temp = 0;
		for (int i = 0; i < target.length - 1; i++) {
			for (int j = 0; j < target.length - 1 - i; j++) {
				if(target[j] > target[j + 1]) {
					temp = target[j];
					target[j] = target[j + 1];
					target[j + 1] = temp;
				}
			}
		}
		System.out.println(Arrays.toString(target));

	}

}
